<?php

class WapBaseC extends YzwController {

    public $layout = 'application.modules.wap.views.layouts.WapContent';
    public $baseViewPath = "/statics/wap/";
    public $menus;

    public function init() {
        parent::init();
//		$this->menus = array(
//            array('label' => '9.9包邮', 'url' => array('/wap/index/jj')),
//            array('label' => '京东专场', 'url' => array('/wap/index/jd')),
//            array('label' => '天猫专场', 'url' => array('/wap/index/tmall')),
//            array('label' => '秋冬新款', 'url' => array('/wap/index/qiudong')),
//        );
    }

    public function runAction($action) {
        //方法名
        defined('ACTION_NAME') or define('ACTION_NAME', $action->getId());
        //访问统计
        try {
            GuestDataModel::model()->record();
        } catch (Exception $exc) {
            
        }
        parent::runAction($action);
    }

}
